package com.baidu.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baidu.user.dao.UserMapper;
import com.baidu.user.pojo.User;

@Service
public class UserServiceImpl implements UserServiceI {
	
   @Autowired
   private UserMapper mapper;

	public int addUser(User user) {
		return mapper.insertSelective(user);
	}

	@Override
	public User login(User user) {
		return mapper.login(user);
	}

	@Override
	public User getUserInfo(String social_uid) {
		return mapper.getUserInfo(social_uid);
	}

}
